import request from '@/utils/request'

export function getAllUserInfo(params) {
	return request({
		url: '/province/userManage/allUserInfo',
		method: 'get',
		params
	})
}

export function getAllRoles(params) {
    return request({
		url: '/province/userManage/allRoles',
		method: 'get',
		params
	})
}

export function changeUserRole(data) {
    return request({
		url: '/province/userManage/userRole',
		method: 'put',
		data
	})
}

export function resetUserPassword(params) {
    return request({
		url: '/province/userManage/userPassword',
		method: 'put',
		params
	})
}

export function changeUserStatus(data) {
    return request({
		url: '/province/userManage/userStatus',
		method: 'put',
		data
	})
}

export function createNewUser(data) {
    return request({
		url: '/province/userManage/createUser',
		method: 'post',
		data
	})
}